package com.xxl.job.core.biz;

import com.xxl.job.core.biz.model.HandleCallbackParam;
import com.xxl.job.core.biz.model.RegistryParam;
import com.xxl.job.core.biz.model.ReturnT;

import java.util.List;

/**
 * 客户端和服务端通讯的接口
 * 有两个实现类，
 * AdminBizClient 客户端调用服务器的接口，主要是用来发送http请求
 * AdminBizImpl 服务端处理相关的业务逻辑
 * @author xuxueli 2017-07-27 21:52:49
 */
public interface AdminBiz {
    /**
     * callback
     *回调
     * @param callbackParamList
     * @return
     */
    public ReturnT<String> callback(List<HandleCallbackParam> callbackParamList);

    /**
     * registry
     *注册表
     * @param registryParam
     * @return
     */
    public ReturnT<String> registry(RegistryParam registryParam);
    /**
     * registry remove
     *注册表删除
     * @param registryParam
     * @return
     */
    public ReturnT<String> registryRemove(RegistryParam registryParam);


}
